package io.renren.dao;

import io.renren.base.Mapper;
import io.renren.entity.EboardStuCardRecordEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 班牌-刷卡记录
 * 
 * @author jinxz
 * @email 156685679@qq.com
 * @date 2017-06-30 16:19:17
 */
public interface EboardStuCardRecordDao extends Mapper<EboardStuCardRecordEntity>
{
	EboardStuCardRecordEntity queryRecord(EboardStuCardRecordEntity eboardStuCardRecordEntity);

	EboardStuCardRecordEntity queryObject(EboardStuCardRecordEntity eboardStuCardRecordEntity);

	Integer queryCountForStatistic(@Param("types")String types, @Param("classIds")String classIds
            , @Param("startDate")String startDate, @Param("endDate")String endDate);

	List<EboardStuCardRecordEntity> queryForStatistic(@Param("types")String tpyes , @Param("classIds")String classIds
            , @Param("startDate")String startDate, @Param("endDate")String endDate , @Param("limit")Integer limit
            , @Param("offset")Integer offset, @Param("sort")String sort, @Param("order")String order);

}
